package com.example.apidocserver.infrastructure.constants;

/**
 * 系统常量
 *
 * @author xyqlg
 */
public interface SystemConstants {
    Integer DATA_COMMON_ID = 1;

    Integer YES = 1;
    Integer NO = 0;

    String STR_YES = "是";

    String STR_NO = "否";

    String NO_DATA = "无数据";

    /**
     * 值 类型
     */
    int FT_NULL = 0;
    int FT_OBJ = 1;
    int FT_NO = 2;
    int FT_STR = 3;
    int FT_ARR = 4;
    int FT_BLN = 5;

    int FT_FILE = 6;

    String SEPARATOR_FIELD = "_#-#_";

    char PATH_BASE = '/';
    char QUERY_START = '?';
    String PATH_BASE_STR = "/";
    String QUERY_START_STR = "?";
    String QUERY_AND_STR = "&";

    /**
     * 参数数据类型，0入参 1出参
     */
    Integer DT_INPUT = 0;
    Integer DT_OUTPUT = 1;

    /**
     * 参数类型
     */
    Integer PT_HEADER = 1;
    Integer PT_PATH = 2;
    Integer PT_QUERY = 3;
    Integer PT_BODY = 4;

    Integer MENU_MENU_TYPE = 0;
    Integer MENU_URI_TYPE = 1;

    String HTTP_DEF_HEADER = "HTTP/1.1 \nContent-Type: application/json;charset=UTF-8\n";

    /**
     * 接口参数字段说明模式
     */
    Integer DM_AFTER = 0;
    Integer DM_BEFORE = 1;
    Integer DM_ONLY_PARAM = 2;
    Integer DM_ONLY_FIELD = 3;

    String NO_AUTHO = "用户无权限。";

    String DF_URI = "/default";
    String TRUE = "true";
}
